<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2020/6/15
  Time: 9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/header.jsp"%>
<html>
<head>
    <title>审核页面</title>
</head>
<body>
    <div id = "root" >
        <Card style="width: 95%;margin: auto">
            <p slot="title" style="height: 30px">
                审核商品
                <i-button @click="fh" :style="{float: 'right'}">返回商品列表</i-button>
            </p>
            <table>
                <tr>
                    <td>商品名：</td>
                    <td>${comexa.name}</td>
                </tr>
                <tr>
                    <td>商品图片：</td>
                    <td><img src="${comexa.pic}" width="100px"></td>
                </tr>
                <tr>
                    <td>商品货号：</td>
                    <td>${comexa.productSn}</td>
                </tr>
                <tr>
                    <td>商品描述：</td>
                    <td>${comexa.description}</td>
                </tr>
                <tr>
                    <td>市场价：</td>
                    <td>${comexa.price}</td>
                </tr>
                <tr>
                    <td>库存：</td>
                    <td>${comexa.stock}</td>
                </tr>
                <tr>
                    <td>品牌：</td>
                    <td>${comexa.brand.name}</td>
                </tr>
                <tr>
                    <td>分类：</td>
                    <td>${comexa.s.sortName}</td>
                </tr>
                <tr>
                    <td>操作员：</td>
                    <td>${comexa.staff.staffName}</td>
                </tr>
            </table>
        </Card>
        <div style="text-align: center">
            <a href="/sys/com/doexa?id=${comexa.id}&verifyStatus=1">
                <i-button>通过</i-button>
            </a>
            <a href="/sys/com/doexa?id=${comexa.id}&verifyStatus=2">
                <i-button>拒绝</i-button>
            </a>
        </div>
    </div>
</body>
<script>
    new Vue({
        el:"#root",
        methods: {
            fh(){
                window.location.href="/sys/com/index";
            }
        }
    })
</script>
</html>
